{% extends "base.html" %}
{% block title %} 爱奇果 - 主页 {% endblock %}
{% block content %}
    {% for classify,movies in results %}
	<div class="row" style="padding:25px 7px">
        <div class="col-md-12 movie-item-out">
			<span><a target="_self" href="{% url 'classsearch' classify.classkey 1 %}" title="{{ classify.classname }}">更多{{ classify.classname }}&gt;&gt;&gt;</a></span>
			<h3 style="padding-left:10px;border-left:8px solid #00A6DE;">最新{{ classify.classname }}：</h3>
		</div>
        {% for item in movies %}
            <div class="col-md-2 col-sm-6 col-xs-6 movie-item-out">
                <div class="movie-item">
                    <a style="position:relative;display:block;" title="{{ item.moviename }}" target="_self" href="{% url 'detail' item.id %}">
                        <img class="indexhot" title="{{ item.moviename }}" alt="{{ item.moviename }}" src="{{ item.picurl }}">
                        <button class="hdtag">{{ item.language }}</button>
                    </a>
                    <div class="meta">
                        <div style="overflow:hidden;height:20px;"><a target="_blank" title="{{ item.moviename }}" class="movie-name" href="{% url 'detail' item.id %}">{{ item.moviename }}</a></div>
                        <em>添加时间：<strong><span style="color:#FF0000;">{{ item.createtime|date:"Y-m-d" }}</span></strong></em>
                    </div>
                </div>
		    </div>
        {% empty %}
            <div class="col-md-2 col-sm-6 col-xs-6 movie-item-out">
                <p>没有相关记录！</p>
            </div>
        {% endfor %}
	</div>
    {% endfor %}
{% endblock %}